<template>
  <div id="app">
    <div>
      
    </div>
    <router-view/>
  </div>
</template>

<style>
body{
    background-color: rgb(231, 234, 243)!important;
}
#app h3{
  line-height: 1.3rem;
}
#app button{
   outline:none!important;
  }
#app input{
  outline:none!important;
}
#app{
            margin: 0;
            padding: 0;
            width: 100%;
            height: 100%;
            /* cursor: default; */
            /* display: block; */
            /* overflow: hidden; */
            animation: bgbody 1.5s ease;
            /* font-family: weiruanyahei; */
        }
</style>
<script>
export default {
  created() {
    if (localStorage.getItem("store")) {
      //更新当前Vuex仓库的所有数据
      this.$store.replaceState(
        Object.assign(
          {},
          this.$store.state,
          JSON.parse(localStorage.getItem("store"))
        )
      );
    }
    window.addEventListener("beforeunload", () => {
      localStorage.setItem("store", JSON.stringify(this.$store.state));
    });
  },
}
</script>
